]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
gdm: Remove pending fingerprint verification failure
authorBenjamin Berg <bberg@redhat.com>
Wed, 28 Apr 2021 16:32:22 +0000 (18:32 +0200)
committerMarge Bot <marge-bot@gnome.org>
Wed, 28 Apr 2021 17:23:01 +0000 (17:23 +0000)
It can happen that we get a problem report and a verification failure at
the same time. For fingerprint, a problem report can result in an
internal verification failure to be queued.

Remove this queued failure again if we got a failure already from GDM
directly.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1821>

js/gdm/util.js

index ecaf09b6a8c5673935fafa6cb3c1b889018f2d9f..72561daab293b918a536139bad6b9a8026f6e624 100644 (file)
@@ -686,6 +686,11 @@ var ShellUserVerifier = class {
     }
 
     _verificationFailed(serviceName, shouldRetry) {
+        if (serviceName === FINGERPRINT_SERVICE_NAME) {
+            if (this._fingerprintFailedId)
+                GLib.source_remove(this._fingerprintFailedId);
+        }
+
         // For Not Listed / enterprise logins, immediately reset
         // the dialog
         // Otherwise, when in login mode we allow ALLOWED_FAILURES attempts.